/*
 * @Author       : 邱狮杰
 * @Date         : 2021-05-20 10:33:28
 * @LastEditTime : 2021-05-20 10:39:08
 * @FilePath     : /wedding-dress-selection/src/hook/inReducerData.ts
 * @Description  : 获取reducer中的数据
 */
import { useContext } from 'react'
import { CreateUserInfo, useContextUserInfoType, CreateLike, useLikeContextType, useWeddingContextType, CreateWedding } from '../reducer/index'
export function useUserInfoForReducer(): useContextUserInfoType {
  return useContext(CreateUserInfo) as useContextUserInfoType
}
export function useLikeForReducer(): useLikeContextType {
  return useContext(CreateLike) as useLikeContextType
}

export function useWeddingForReducer(): useWeddingContextType {
  return useContext(CreateWedding) as useWeddingContextType
}
